#include<memory>
#include"EpollServer.hpp"

using namespace std;
using namespace ns_epoll;

void change(std::string request)
{
    std::cout<<"change:"<<request<<std::endl;
}

int main(int argc , char*argv[])
{
    if(argc !=2)
    {
        change(argv[0]);
        exit(10);
    }
    uint16_t port = atoi(argv[1]);
    unique_ptr<EpollServer> epoll_server(new EpollServer(change));

    epoll_server->Start();
    return 0;
}